package com.csun.cmny.provider.dao;

import com.csun.cmny.provider.dto.ShowAllLeaveDto;
import com.csun.cmny.provider.pojo.OldmanLeave;
import com.csun.cmny.provider.vo.OldmanLeaveVo;
import com.csun.cmny.provider.vo.SettleDetailVo;

import java.util.List;


public interface OldmanLeaveMapper {
    int deleteByPrimaryKey(Integer leaveId);

    int insert(OldmanLeave record);

    int insertSelective(OldmanLeave record);

    OldmanLeave selectByPrimaryKey(OldmanLeave key);

    int updateByPrimaryKeySelective(OldmanLeave record);

    int updateByPrimaryKey(OldmanLeave record);

    List<OldmanLeaveVo> showAll(ShowAllLeaveDto dto);

    SettleDetailVo getLeaveByOid(Integer oldmanId);

    int updateByOid(OldmanLeave oldmanLeave);

    int deleteByOid(Integer oldmanId);

    /**
     * 乐颐查询出院列表
     * @param: [dto]
     * @return: java.util.List<com.csun.cmny.provider.vo.OldmanLeaveVo>
     */
    List<OldmanLeaveVo> queryOldmanLeaveListWithPage(ShowAllLeaveDto dto);

    /*
    * 出院列表查询
    * */
    List<OldmanLeaveVo> listPage(ShowAllLeaveDto dto);
}